import styled from "styled-components";


// 样式混入
export const RightWrapper = styled.div` flex: 1;
display: flex;
justify-content: flex-end;

.btns {
  display: flex;
  align-items: center;

  span {
    display: flex;
    width: 58px;
    line-height: 42px;
    font-size: 14px;
    color: #222;
    font-weight: 700;
  }

  .login,
  .regier {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    cursor: pointer;
    transition: all 0.7s;
  }

  .login:hover,
  .regier:hover {

    background-color: #f7f7f7;
    border-radius: 20px;
  }

  .icon-ads {
    display: flex;
    margin-left: 20px;
  }

}

.profile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  width: 88px;
  height: 40px;
  border-radius: 24px;
  border: 1px solid #DDDDDD;
  margin-left: 20px;
  cursor: pointer;

  .avatar {
    color: #717171;
    width: 32px;
    height: 32px;

  }

  ${props => props.theme.mixin.boxShadow}
}

.panel {
  position: absolute;
  right: 0;
  top: 60px;
  width: 240px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.18);
  z-index: 9999;

  .top,
  .btm {
    padding: 10px 0;
  }

  .btm {
    border-top: 1px solid #ddd;
  }

  .item {
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    transition: font-weight 200ms ease;
  }

  .item:hover {
    background-color: #f7f7f7;
    /* font-weight: 700; */
  }
}

`